<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function arraySum(arr){
				var sum = 0;
				for(var i=0; i<arr.length; i++){
					sum = sum + arr[i];
				}
				return sum;
			}
			var a1 = [33,55,44,64,56,75,55];
			var sum = arraySum(a1);
			console.log(sum);
			var a2 = 'dddd';
			var sum2 = arraySum(a2);
			console.log(sum2)
		</script>
	</head>
	<body>
	</body>
</html>
